package com.qf.dto;

import com.qf.pojo.CheckNull;
import org.springframework.util.StringUtils;

public class UsersDto  implements CheckNull {

    private String  username;
    private String password;
    private int datastatus;

    private String passwordsalt;

    @Override
    public boolean isNull() {
          return StringUtils.isEmpty(username)&&StringUtils.isEmpty(password);
    }

    public String getPasswordsalt() {
        return passwordsalt;
    }

    public void setPasswordsalt(String passwordsalt) {
        this.passwordsalt = passwordsalt;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getDatastatus() {
        return datastatus;
    }

    public void setDatastatus(int datastatus) {
        this.datastatus = datastatus;
    }
}
